package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.ShoppingCart;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ShoppingcartMapper {

    List<ShoppingCart> list(ShoppingCart shoppingCart);

    @Select("    select * from shopping_cart")
List<ShoppingCart>listall();

@Update("update shopping_cart set number=#{number} where id=#{id}")
public void update(ShoppingCart shoppingCart);

    public void addshoppingcart(ShoppingCart shoppingcart);


    public void deleteone(ShoppingCart shoppingCart);

    public void deleteall(Long userId);
}
